import request from '@/utils/request'

// 查询危废待出库列表
export function listPreOutWarehouse(query) {
    return request({
        url: '/business/outWarehouse/PreOutList',
        method: 'get',
        params: query
    })
}

// 查询危废出库列表
export function listOutWarehouse(query) {
    return request({
        url: '/business/outWarehouse/list',
        method: 'get',
        params: query
    })
}

// 查询危废出库详细
export function getOutWarehouse(outWarehouseId) {
    return request({
        url: '/business/outWarehouse/' + outWarehouseId,
        method: 'get'
    })
}

// 新增危废出库
export function addOutWarehouse(data) {
    return request({
        url: '/business/outWarehouse',
        method: 'post',
        data: data
    })
}

// 修改危废出库
export function updateOutWarehouse(data) {
    return request({
        url: '/business/outWarehouse',
        method: 'put',
        data: data
    })
}

// 删除危废出库
export function delOutWarehouse(outWarehouseId) {
    return request({
        url: '/business/outWarehouse/' + outWarehouseId,
        method: 'delete'
    })
}

// 导出危废待出库列表
export function exportPreOutWarehouse(query) {
    return request({
        url: '/business/outWarehouse/PreOutExport',
        method: 'get',
        params: query
    })
}

// 导出危废出库
export function exportOutWarehouse(query) {
    return request({
        url: '/business/outWarehouse/export',
        method: 'get',
        params: query
    })
}